package com.sky.service;


import com.sky.dto.DishDTO;
import com.sky.dto.DishPageQueryDTO;
import com.sky.entity.Dish;
import com.sky.result.PageResult;
import com.sky.vo.DishVO;
import org.springframework.stereotype.Service;

import java.util.List;


public interface DishService {


    /**
     * 新增菜品和口味数据
     * @param dishDTO
     */
    public void saveWithFlavor(DishDTO dishDTO);

    /**
     * 菜品分页查询
     * @param dishPageQueryDTO
     * @return
     */
    PageResult pageQuery(DishPageQueryDTO dishPageQueryDTO);

    void deleteBatch(List<Long> ids);
    //根据id来查询菜品信息
    DishVO getByIdWithFlavor(Long id);

    void updateWithFlavor(DishDTO dishDTO);


    List<Dish> list(Long categoryId);

    List<DishVO> listWithFlavor(Dish dish);


    void stopOrStart(String status, String id);
}
